/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bookdbws;

import branchws.IMain;
import java.util.List;

/**
 *
 * @author Atuan
 */
public interface IBookDB extends IMain{
    public List<Book> searchForBooksByTitle(String title);
    public List<Book> searchForBooksByAuthor(String name, String surname);
    public List<Book> searchForBooksByAuthor(String surname);
    public List<Book> searchForBooksByPublisher(String publisher);
    public Book getBook(String isbn);
    public Boolean addBook(Book book);
    public Boolean removeBook(String isbn);
    public Boolean removeCopyOfBook(String isbn);
    public Boolean updateBook(Book book);
    public List<Book> getAllBooks();
    public List<Author> getAllAuthors();
    public List<String> getAllPublishers();
    
    //public Boolean updateAuthor(Author author);
    //public int addAuthor(Author author);
    //public Boolean removeAuthor(int id);
    //public int addPublisher(Publisher p);
    //public Boolean updatePublisher(Publisher p);
    //public Boolean updatePrice(String isbn, double price);
    //public Boolean updateAmount(String isbn, int amount);
}
